class HomeController < ApplicationController
  
  def index
    randoms = []
    Photo.find(:all, :conditions => ['random = ?', true]).each {|photo| randoms << photo}
    Video.find(:all, :conditions => ['random = ?', true]).each {|video| randoms << video}
    @random = randoms.rand
  end
  
  def bio
  end
  
  def contact
    #if params[:contact]
    #  mail = Notifier.create_website_contact(params[:contact][:sender_email], params[:contact][:sender_name], params[:contact][:body])
    #  if Notifier.deliver(mail)
    #    flash[:update] = "Thank you! Your message has been sent to Dan Stewart."
    #  else
    #    flash[:error] = "There was a problem sending your message to Dan Stewart, please try again."
    #  end
    #end
  end
  
end
